<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Tdmq\V20200217\Models;
use TencentCloud\Common\AbstractModel;

/**
 * DescribeRabbitMQVipInstance response structure.
 *
 * @method RabbitMQClusterInfo getClusterInfo() Obtain 
 * @method void setClusterInfo(RabbitMQClusterInfo $ClusterInfo) Set 
 * @method RabbitMQClusterSpecInfo getClusterSpecInfo() Obtain 
 * @method void setClusterSpecInfo(RabbitMQClusterSpecInfo $ClusterSpecInfo) Set 
 * @method RabbitMQClusterAccessInfo getClusterNetInfo() Obtain Cluster network information.
 * @method void setClusterNetInfo(RabbitMQClusterAccessInfo $ClusterNetInfo) Set Cluster network information.
 * @method RabbitMQClusterWhiteListInfo getClusterWhiteListInfo() Obtain Cluster allowlist.
 * @method void setClusterWhiteListInfo(RabbitMQClusterWhiteListInfo $ClusterWhiteListInfo) Set Cluster allowlist.
 * @method VirtualHostQuota getVirtualHostQuota() Obtain 
 * @method void setVirtualHostQuota(VirtualHostQuota $VirtualHostQuota) Set 
 * @method ExchangeQuota getExchangeQuota() Obtain 
 * @method void setExchangeQuota(ExchangeQuota $ExchangeQuota) Set 
 * @method QueueQuota getQueueQuota() Obtain 
 * @method void setQueueQuota(QueueQuota $QueueQuota) Set 
 * @method RabbitMQUserQuota getUserQuota() Obtain User quota information.
 * @method void setUserQuota(RabbitMQUserQuota $UserQuota) Set User quota information.
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class DescribeRabbitMQVipInstanceResponse extends AbstractModel
{
    /**
     * @var RabbitMQClusterInfo 
     */
    public $ClusterInfo;

    /**
     * @var RabbitMQClusterSpecInfo 
     */
    public $ClusterSpecInfo;

    /**
     * @var RabbitMQClusterAccessInfo Cluster network information.
     */
    public $ClusterNetInfo;

    /**
     * @var RabbitMQClusterWhiteListInfo Cluster allowlist.
     */
    public $ClusterWhiteListInfo;

    /**
     * @var VirtualHostQuota 
     */
    public $VirtualHostQuota;

    /**
     * @var ExchangeQuota 
     */
    public $ExchangeQuota;

    /**
     * @var QueueQuota 
     */
    public $QueueQuota;

    /**
     * @var RabbitMQUserQuota User quota information.
     */
    public $UserQuota;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param RabbitMQClusterInfo $ClusterInfo 
     * @param RabbitMQClusterSpecInfo $ClusterSpecInfo 
     * @param RabbitMQClusterAccessInfo $ClusterNetInfo Cluster network information.
     * @param RabbitMQClusterWhiteListInfo $ClusterWhiteListInfo Cluster allowlist.
     * @param VirtualHostQuota $VirtualHostQuota 
     * @param ExchangeQuota $ExchangeQuota 
     * @param QueueQuota $QueueQuota 
     * @param RabbitMQUserQuota $UserQuota User quota information.
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("ClusterInfo",$param) and $param["ClusterInfo"] !== null) {
            $this->ClusterInfo = new RabbitMQClusterInfo();
            $this->ClusterInfo->deserialize($param["ClusterInfo"]);
        }

        if (array_key_exists("ClusterSpecInfo",$param) and $param["ClusterSpecInfo"] !== null) {
            $this->ClusterSpecInfo = new RabbitMQClusterSpecInfo();
            $this->ClusterSpecInfo->deserialize($param["ClusterSpecInfo"]);
        }

        if (array_key_exists("ClusterNetInfo",$param) and $param["ClusterNetInfo"] !== null) {
            $this->ClusterNetInfo = new RabbitMQClusterAccessInfo();
            $this->ClusterNetInfo->deserialize($param["ClusterNetInfo"]);
        }

        if (array_key_exists("ClusterWhiteListInfo",$param) and $param["ClusterWhiteListInfo"] !== null) {
            $this->ClusterWhiteListInfo = new RabbitMQClusterWhiteListInfo();
            $this->ClusterWhiteListInfo->deserialize($param["ClusterWhiteListInfo"]);
        }

        if (array_key_exists("VirtualHostQuota",$param) and $param["VirtualHostQuota"] !== null) {
            $this->VirtualHostQuota = new VirtualHostQuota();
            $this->VirtualHostQuota->deserialize($param["VirtualHostQuota"]);
        }

        if (array_key_exists("ExchangeQuota",$param) and $param["ExchangeQuota"] !== null) {
            $this->ExchangeQuota = new ExchangeQuota();
            $this->ExchangeQuota->deserialize($param["ExchangeQuota"]);
        }

        if (array_key_exists("QueueQuota",$param) and $param["QueueQuota"] !== null) {
            $this->QueueQuota = new QueueQuota();
            $this->QueueQuota->deserialize($param["QueueQuota"]);
        }

        if (array_key_exists("UserQuota",$param) and $param["UserQuota"] !== null) {
            $this->UserQuota = new RabbitMQUserQuota();
            $this->UserQuota->deserialize($param["UserQuota"]);
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
